﻿using UnityEngine;

namespace TC
{
    [Menu("Function/Mul")]
    public class Mul : VariableNode
    {
        public ValueInput<Vector3> vecIn;
        public ValueInput<float> ts;

        public ValueOutput<Vector3> vecOut;

        public override void OnCreate()
        {
            base.OnCreate();

            vecIn = this.AddValueInPort<Vector3>("vec");
            ts = this.AddValueInPort<float>("times");

            vecOut = this.AddValueOutPort<Vector3>("vec", () => { return vecIn.Value * ts.Value; });
        }
    }
}
